libostree: Silently ignore EPERM when setting EXT2_IMMUTABLE_FL
authorColin Walters <walters@verbum.org>
Wed, 4 Jun 2014 22:21:32 +0000 (18:21 -0400)
committerColin Walters <walters@verbum.org>
Mon, 9 Jun 2014 18:44:17 +0000 (14:44 -0400)
commite31daf448afdaec9e692612ae522c7d89bf8be28
tree6c5fd8b269bbcb5f8a51b85796d6d2548886e777
parent24c64d6b4fea57040f4711ea0377e99482356915
libostree: Silently ignore EPERM when setting EXT2_IMMUTABLE_FL

In the case of running ostree as non-root on a regular filesystem (not
tmpfs which doesn't support immutable), we should just silently do
nothing if we encounter EPERM.  Cache the result to avoid spam in
strace.

https://bugzilla.gnome.org/show_bug.cgi?id=728006
src/libostree/ostree-linuxfsutil.c